package com.atguigu04.override.test1;

/**
 * ClassName: Order
 * Package: com.atguigu04.override.test1
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/21 17:44
 * @Version 1.0
 */
public class Order {
    private int orderPrivate;
    int orderDefault;
    protected int orderProtected;
    public int orderPublic;

    private void methodPrivate() {
    }

    void methodDefault() {
    }

    protected void methodProtected() {
    }

    public void methodPublic() {
    }

    // 类内部
    public void show() {
        orderPrivate = 1;
        orderDefault = 1;
        orderProtected = 1;
        orderPublic = 1;
        methodPrivate();
        methodDefault();
        methodProtected();
        methodPublic();
    }
}
